package com.ipartek.formacion.primeraWebApp.bbdd;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ODBCFactoryDAO extends DAOFactory {

    private static final String DRIVER_CLASS_NAME = "sun.jdbc.odbc.JdbcOdbcDriver";
    private static final String CONNECTION_URL = "jdbc:odbc:PruebaCurso";
    private static final String DB_USER = "";
    private static final String DB_PWD = "";	
	
	public ODBCFactoryDAO() {
		// TODO Auto-generated constructor stub
	}
	
	public static Connection getConnection() throws SQLException
	{
        Connection conn = null;
        conn = DriverManager.getConnection(CONNECTION_URL, DB_USER, DB_PWD);
        return conn;
	}

	//Metodos que devolveran la instancia de los Alumnos y cursos de ODBC
	@Override
	public AlumnoDAO getAlumno() {
		// TODO Auto-generated method stub
		return new ODBCAlumnoDAO();
	}

}
